﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using System.Data.Entity;
using OCBizAPI.Models;
using OCBizAPI.Repository;
using Devtalk.EF.CodeFirst;

namespace OCBizAPI {
    // Nota: para obtener instrucciones sobre cómo habilitar el modo clásico de IIS6 o IIS7, 
    // visite http://go.microsoft.com/?LinkId=9394801

    public class WebApiApplication : System.Web.HttpApplication {
        protected void Application_Start() {
            AreaRegistration.RegisterAllAreas();

            //Registrar contexto sin borrar la base de datos solo borra las tablas. Comentar despues de usar.
            //Database.SetInitializer(new DontDropDbJustCreateTablesIfModelChanged<OCBizAPIContext>());

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            //FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            //RouteConfig.RegisterRoutes(RouteTable.Routes);
            
            
            //BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
    }
}